package chapter08;

import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

@Slf4j
public class ThreadPoolExecutorTest {
    // TERMINATED>TIDYING>STOP>SHUTDOWN>RUNNING
    public static void main(String[] args) {

        ExecutorService threadPoolExecutor = Executors.newFixedThreadPool(1);
        threadPoolExecutor.shutdown();
        threadPoolExecutor.shutdownNow();
    }
}
